package com.example.readwrite.controller;

import com.example.readwrite.mapper.StudentMapper;
import com.example.readwrite.model.Student;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class StudentController {

    @Autowired
    private StudentMapper studentMapper;

    @GetMapping("/testLoadBalance")
    public void testLoadBalance() {
        Student student3 = studentMapper.selectById(5);
        log.info(String.valueOf(student3));
    }

}
